<template>
  <button @click="sendMessageToChild2">发送消息给Child2</button>
</template>
<script setup>
import eventBus from './eventBus';
const sendMessageToChild2 = ()=>{
    eventBus.emit('message','Hello from Child1');
}
</script>
<style>
</style>